3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and edit directional lights.
You can use the Q3DirectionalLight_New function to create a new directional light.
TQ3LightObject Q3DirectionalLight_New (
const TQ3DirectionalLightData *directionalLightData);
You can use the Q3DirectionalLight_GetCastShadowsState function to get the shadow-casting state of a directional light.
TQ3Status Q3DirectionalLight_GetCastShadowsState (
TQ3LightObject light,
TQ3Boolean *castsShadows);
You can use the Q3DirectionalLight_SetCastShadowsState function to set the shadow-casting state of a directional light.
TQ3Status Q3DirectionalLight_SetCastShadowsState (
TQ3LightObject light,
TQ3Boolean castsShadows);
You can use the Q3DirectionalLight_GetDirection function to get the direction of a directional light.
TQ3Status Q3DirectionalLight_GetDirection (
TQ3LightObject light,
TQ3Vector3D *direction);
You can use the Q3DirectionalLight_SetDirection function to set the direction of a directional light.
TQ3Status Q3DirectionalLight_SetDirection (
TQ3LightObject light,
const TQ3Vector3D *direction);
You can use the Q3DirectionalLight_GetData function to get the data that defines a directional light.
TQ3Status Q3DirectionalLight_GetData (
TQ3LightObject light,
TQ3DirectionalLightData *directionalLightData);
The Q3DirectionalLight_GetData function returns, through the directionalLightData parameter, information about the directional light specified by the light parameter. See "Directional Light Data Structure" for a description of a directional light data structure.
You can use the Q3DirectionalLight_SetData function to set the data that defines a directional light.
TQ3Status Q3DirectionalLight_SetData (
TQ3LightObject light,
const TQ3DirectionalLightData *directionalLightData);
Previous | QD3D Book | Overview | Chapter Contents | Next |